include("shared.lua")

module("Game", package.seeall )

usermessage.Hook("SFGame", function( um )
	
	local Id = um:ReadChar()
	
	if Id == 0 then
		
		local state = um:ReadLong()
		hook.Call("StateChange", GAMEMODE, state )
	
	elseif Id == 1 then
	
		_G.GAMEMODE.ScoreboardShow()
	
	end


end )


